package com.hesicare.cgm.entity;

import com.hesicare.health.entity.BaseEntity;

import javax.persistence.Id;
import java.util.Date;

/**
 * @Author 55097
 * @create 2021/12/6 14:48
 */
public class CgmEquipmentDTO extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 当前页
     */
    private Integer pageNum;

    /**
     * 每页显示记录数
     */
    private Integer pageSize;
    /**
     * 床号
     */
    private String bedNum;
    /**
     * 最后一次测量时间
     */
    private Integer lastMeasureMinute;
    /**
     * 最后一次校准时间
     */
    private Integer lastCalibrationMinute;
    /**
     * 网关mac地址
     */
    private String gatewayMac;
    /**
     * 部门id
     */
    private Long deptId;
    /**
     * cgm设备sn
     */
    private String cgmSn;

    /**
     * cgm设备MAC地址
     */
    private String cgmMac;

    /**
     * 主键
     */
    private Long id;

    /**
     * 患者id
     */
    private Long patientId;

    /**
     * 网关sn
     */
    private String gatewaySn;

    /**
     * 电量
     */
    private Integer electricity;

    /**
     * 电量更新时间
     */
    private Date LastElectricityTime;

    /**
     * 状态(0-已断开，1-已连接，2-停用，3-删除，4-未连接)
     */
    private String status;
    /**
     * 最近血糖测量值
     */
    private Double lastMeasureValue;
    /**
     * 最近血糖测量时间
     */
    private Date lastMeasureTime;
    /**
     * 最近校准值
     */
    private Double lastCalibrationValue;
    /**
     * 最近校准时间
     */
    private Date lastCalibrationTime;
    /**
     * 探头类型(0 新 1 旧)
     */
    private String probeType;
    /**
     * 绑定步骤（1连接中，2待插探头，3佩戴设备中，4初始化中，5输入校准值中，6校准中）
     */
    private String bindingStep;
    private Date sensorExpireTime;

    /**
     * 尝试连接患者id
     */
    private Long tryPatientId;
    private Date nextCalibrationTime;

    /**
     * 是否建立安全连接(0 未建立 1 已建立)
     */
    private String secureConnection;
    /**
     * 是否已发送请立即校准（0-未发送；1-已发送）
     */
    private String sendCalibration;
    /**
     * 设备类型
     */
    private String deviceMacType;

    /**
     * CGM启动时间
     */
    private Date startTime;

    private Date bindingTime;

    /**
     * 停用时是否获取历史数据 (0 不获取 1 获取)
     */
    private String getHistoricalData;
    public interface Save {
    }

    public interface Update {
    }

    public interface Select {
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getBedNum() {
        return bedNum;
    }

    public void setBedNum(String bedNum) {
        this.bedNum = bedNum;
    }

    public Integer getLastMeasureMinute() {
        return lastMeasureMinute;
    }

    public void setLastMeasureMinute(Integer lastMeasureMinute) {
        this.lastMeasureMinute = lastMeasureMinute;
    }

    public Integer getLastCalibrationMinute() {
        return lastCalibrationMinute;
    }

    public void setLastCalibrationMinute(Integer lastCalibrationMinute) {
        this.lastCalibrationMinute = lastCalibrationMinute;
    }

    public String getGatewayMac() {
        return gatewayMac;
    }

    public void setGatewayMac(String gatewayMac) {
        this.gatewayMac = gatewayMac;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getCgmSn() {
        return cgmSn;
    }

    public void setCgmSn(String cgmSn) {
        this.cgmSn = cgmSn;
    }

    public String getCgmMac() {
        return cgmMac;
    }

    public void setCgmMac(String cgmMac) {
        this.cgmMac = cgmMac;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPatientId() {
        return patientId;
    }

    public void setPatientId(Long patientId) {
        this.patientId = patientId;
    }

    public String getGatewaySn() {
        return gatewaySn;
    }

    public void setGatewaySn(String gatewaySn) {
        this.gatewaySn = gatewaySn;
    }

    public Integer getElectricity() {
        return electricity;
    }

    public void setElectricity(Integer electricity) {
        this.electricity = electricity;
    }

    public Date getLastElectricityTime() {
        return LastElectricityTime;
    }

    public void setLastElectricityTime(Date lastElectricityTime) {
        LastElectricityTime = lastElectricityTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Double getLastMeasureValue() {
        return lastMeasureValue;
    }

    public void setLastMeasureValue(Double lastMeasureValue) {
        this.lastMeasureValue = lastMeasureValue;
    }

    public Date getLastMeasureTime() {
        return lastMeasureTime;
    }

    public void setLastMeasureTime(Date lastMeasureTime) {
        this.lastMeasureTime = lastMeasureTime;
    }

    public Double getLastCalibrationValue() {
        return lastCalibrationValue;
    }

    public void setLastCalibrationValue(Double lastCalibrationValue) {
        this.lastCalibrationValue = lastCalibrationValue;
    }

    public Date getLastCalibrationTime() {
        return lastCalibrationTime;
    }

    public void setLastCalibrationTime(Date lastCalibrationTime) {
        this.lastCalibrationTime = lastCalibrationTime;
    }

    public String getProbeType() {
        return probeType;
    }

    public void setProbeType(String probeType) {
        this.probeType = probeType;
    }

    public String getBindingStep() {
        return bindingStep;
    }

    public void setBindingStep(String bindingStep) {
        this.bindingStep = bindingStep;
    }

    public Date getSensorExpireTime() {
        return sensorExpireTime;
    }

    public void setSensorExpireTime(Date sensorExpireTime) {
        this.sensorExpireTime = sensorExpireTime;
    }

    public Long getTryPatientId() {
        return tryPatientId;
    }

    public void setTryPatientId(Long tryPatientId) {
        this.tryPatientId = tryPatientId;
    }

    public Date getNextCalibrationTime() {
        return nextCalibrationTime;
    }

    public void setNextCalibrationTime(Date nextCalibrationTime) {
        this.nextCalibrationTime = nextCalibrationTime;
    }

    public String getSecureConnection() {
        return secureConnection;
    }

    public void setSecureConnection(String secureConnection) {
        this.secureConnection = secureConnection;
    }

    public String getSendCalibration() {
        return sendCalibration;
    }

    public void setSendCalibration(String sendCalibration) {
        this.sendCalibration = sendCalibration;
    }

    public String getDeviceMacType() {
        return deviceMacType;
    }

    public void setDeviceMacType(String deviceMacType) {
        this.deviceMacType = deviceMacType;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getBindingTime() {
        return bindingTime;
    }

    public void setBindingTime(Date bindingTime) {
        this.bindingTime = bindingTime;
    }

    public String getGetHistoricalData() {
        return getHistoricalData;
    }

    public void setGetHistoricalData(String getHistoricalData) {
        this.getHistoricalData = getHistoricalData;
    }
}
